# -*- coding:utf-8 -*-
import os

"""
脚本作用：windows下HTML文件名读取
    所需参数
    路径
"""

replace_target = ""
def readFolder(path):
    filelist=os.listdir(path)
    #该文件夹下所有的文件（包括文件夹）
    
    for files in filelist:      #遍历所有文件
        olddir = os.path.join(path, files)
        if os.path.isdir(olddir):
            readFolder(olddir)
        if not os.path.isdir(olddir) and ".html" in os.path.splitext(files)[1]:
            print("##", os.path.splitext(files)[0])


if __name__ == '__main__':
    path = input('please input path:')
    #print(path, replace_target)   
    readFolder(path)
